function getStorage(key) {
    let data = window.localStorage.getItem(key);
    return JSON.parse(data)
}

function setStorage(key, data) {
    data = JSON.stringify(data)
    window.localStorage.setItem(key, data)

    return data
}

export {
    getStorage,
    setStorage
}

export default {
    getStorage,
    setStorage
}